
#pragma once
#include "Device.h"
#include "Shader.h"
#include "DevicePlatform.h"
#include "UnitDerive.h"
#include "Effect.h"

namespace mini
{
	class CPostEffect : public CEffect
	{
	public:
		CPostEffect();
		virtual ~CPostEffect();
		bool initTarget(int nCount);
		void bindMaterialUnit(const std::string& szFile);

	protected:
		CMeshUnit* mpMeshUnit = nullptr;
		CMatrix matrixArray[3];
		std::vector<CTexture*>	mTextureArray;
		std::vector<ID3D11RenderTargetView*> mpRenderTargetViewArray;
	};

}